import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'Index',
    component: () =>
        import ('../views/Index.vue'),
    children: [{
            path: 'Home',
            name: 'Home',
            component: () =>
                import ('../views/Home.vue'),
        },
        {
            path: 'Hot',
            name: 'Hot',
            component: () =>
                import ('../views/Hot.vue'),
        },
        {
            path: 'Search',
            name: 'Search',
            component: () =>
                import ('../views/Search.vue'),
        },
    ]
}]

const router = new VueRouter({
    routes
})

export default router